<?php

namespace App\Http\Requests\QH;

use Illuminate\Foundation\Http\FormRequest;

class QuestionImportByExcelRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'knowledgeId' => 'bail|nullable|integer|exists:qh_knowledge,id',
            'filePath' => 'bail|required|string'
        ];
    }
}
